package com.example.gulimallauthserver.feign;

import com.example.common.utils.R;
import com.example.gulimallauthserver.vo.GiteeUserVo;
import com.example.gulimallauthserver.vo.UserLoginVo;
import com.example.gulimallauthserver.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/gulimallmember/member/regist")
    public R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/gulimallmember/member/login")
    public R login(@RequestBody UserLoginVo vo);

    @PostMapping("/gulimallmember/member/oauth2/login")
    public R oauthlogin(@RequestBody GiteeUserVo vo);
}
